package cn.edu.scau.cmi.dengzhengyu.comprehensiveExperiment;


import cn.edu.scau.cmi.dengzhengyu.SimpleFactoryMethodPattern.Beef;
import cn.edu.scau.cmi.dengzhengyu.SimpleFactoryMethodPattern.Chicken;
import cn.edu.scau.cmi.dengzhengyu.SimpleFactoryMethodPattern.Pork;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class SimpleFactoryMethodUIController {

    @FXML
    private Button btn_SF_pk;

    @FXML
    private Button btn_SF_ck;

    @FXML
    private TextArea text_1;

    @FXML
    private Button btn_SF_bf;

    public void eventBtn_SF_Pork()
    {	
    	text_1.appendText(new Pork().taste()+"\n");
    }
    
    public void eventBtn_SF_Beef()
    {	
    	
    	text_1.appendText(new Beef().taste()+"\n");
    }
    
    public void eventBtn_SF_Chicken()
    {	
    	
    	text_1.appendText(new Chicken().taste()+"\n");
    }
}